<include file="Public:header.inc" />
<script charset="utf-8" src="/public/lib/kindeditor/kindeditor-min.js"></script>

<script charset="utf-8" src="/public/lib/kindeditor/lang/zh_CN.js"></script>
<script>	
	/*var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {			
			//uploadJson : '/public/lib/kindeditor/php/upload_json.php',
            fileManagerJson : '/public/lib/kindeditor/php/file_manager_json.php',
            //allowFileManager : true
		});
	});
	*/
	KindEditor.ready(function(K) {
		K.create('#content', {
			fileManagerJson : '/public/lib/kindeditor/php/file_manager_json.php',
			allowFileManager : false
		});
	});

</script>

<h1>新闻添加</h1>
<form id="frm" name="frm" action="" method="post" >
<input type="hidden" name="id" id="id" value="{$data.id}" />
<ul>
<li><label>标题</label>
<div><input type="text" name="title" id="title" value="{$data.title}" /></div>
</li>
<li><label>内容</label>
<div><textarea id="content" name="content" style="width:800px;height:400px;visibility:hidden;">{$data.content}</textarea></div>
</li>
</ul>

<div style="align:center">
	<input type="submit" value="提交" />
</div>
</form>

<include file="Public:footer.inc" />